package com.bml.architect.spring.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.io.Serializable;
import java.util.List;

@Service
public class UserService implements Serializable {

//    @Value("bai mao lin")
//    private User user;

    @Autowired(required = false)
    private List<Order> orderList;

    class MyInnerClass{

    }

    @PostConstruct
    public void init(){
        System.out.println("string to User：" + orderList);
        System.out.println("Userservice init ...");
    }
}
